package com.lanou3g.code0408.setterandgetter;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/8;
 * Otherwise, I don't know who created it either
 */

/*
以后 记住:
1. 类中的所有 属性 都是private的
2. 每个属性提供一对 setXXX 和 getXXX 的方法 (XXX就是属性名)
    我们叫它 set/get 方法
3. set方法用来为这个属性进行赋值
4. get方法用来获取这个属性的值
 */

public class Girl {
    private int age;
    private String name;
    private float weight;

    // mac : command + n
    // windows : alt + insert

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }
}
